package user;

import enumeration.EnumRobStrategy;
import http.BasicRequest;
import user.impl.SimpleUserDTO;

import java.text.SimpleDateFormat;
import java.util.*;
/**
 * 抽象抢课用户类
 * 用来存放抢课相关的状态
 * @class OldUser extend default4 绕过验证码登录的用户类
 * @class BetterUser extend default2 首页过验证码登录的用户类
 * */
public abstract class AbstractUser implements IUser{

    private String viewState = null;
    private BasicRequest basicRequest = null;


    /** getter/setter **/
    /** ViewState - 发包需要 **/
    public void setViewState(String viewState) {
        this.viewState = viewState;
    }
    public String getViewState() {
        return this.viewState;
    }
    /** basicRequest - 管理发包 **/
    public BasicRequest getBasicRequest() {
        if (basicRequest == null) {
            basicRequest = new BasicRequest();
        }
        return basicRequest;
    }
    public void setBasicRequest(BasicRequest basicRequest) {
        this.basicRequest = basicRequest;
    }

}
